<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Product_Detail extends MY_Controller {

    public function __construct()
    {
        parent::__construct();
        $this->layout->setLayout('frontend/index');
    }

    public function viewProductDetail($id){
        $data['products'] = $this->mproduct->get_productbyid($id);
        $this->layout->view('frontend/product_detail', $data);
    }
}